package com.blank.shop.dubbo.provider;

import com.blank.shop.dubbo.ShopAlibabaDubboApplication;
import com.blank.shop.dubbo.api.EchoService;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.context.annotation.Profile;

/**
 * @author _blank
 */
@Slf4j
@DubboService
@Profile({ShopAlibabaDubboApplication.SERVER_PROFILE_PROVIDER1, ShopAlibabaDubboApplication.SERVER_PROFILE_PROVIDER2})
public class ProviderEchoServiceImpl implements EchoService {

    @Override
    public String echo(String message) {
        log.info("------{}", message);
        return "[echo] Hello, " + message;
    }

}